home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / gnustuff / tos / updates / update27.zoo / gcc-233 / Makefile.st.hpgcc < prev    next >
Encoding:
Makefile  |  1992-12-28  |  19.0 KB  |  515 lines

  1. # Makefile for GNU C NATIVE COMPILER for the atariST/TT series hosted
  2. #  on a HPUX host (tested only on a HP Snake running hpux 8.x)
  3. #  NOTE: requires alloca.c from the emacs dist.
  4. #
  5.  
  6. # Makefile for GNU C compiler.
  7. #   Copyright (C) 1987 Free Software Foundation, Inc.
  8.  
  9. #This file is part of GNU CC.
  10.  
  11. #GNU CC is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY.  No author or distributor
  13. #accepts responsibility to anyone for the consequences of using it
  14. #or for whether it serves any particular purpose or works at all,
  15. #unless he says so in writing.  Refer to the GNU CC General Public
  16. #License for full details.
  17.  
  18. #Everyone is granted permission to copy, modify and redistribute
  19. #GNU CC, but only under the conditions described in the
  20. #GNU CC General Public License.   A copy of this license is
  21. #supposed to have been given to you along with GNU CC so you
  22. #can know your rights and responsibilities.  It should be in a
  23. #file named COPYING.  Among other things, the copyright notice
  24. #and this notice must be preserved on all copies.
  25.  
  26. .NOEXPORT: # This tells GNU Make version 3
  27.        # not to put all the variables in the environment.
  28.  
  29.  
  30. CROSSDIR = /net/acae127/home/bammi/atari.hp-ux/cross-gcc
  31. CROSSBIN = $(CROSSDIR)/bin
  32. CROSSLIB = $(CROSSDIR)/lib
  33. CROSSINC = $(CROSSDIR)/include
  34.  
  35. DFLAGS= -DCROSSDIR=\"\"
  36. CFLAGS = $(DFLAGS) -O -I$(CROSSINC) -I./config -I. -Datarist=1
  37. # LDFLAGS = 
  38. HOSTCFLAGS = $(DFLAGS) -O -DCROSSHPUX -I./config -I.
  39. HOSTLDFLAGS = 
  40. CC = /net/acae127/home/bammi/atari.hp-ux/cross-gcc/bin/cgcc
  41. # hosts cc
  42. HOSTCC=/util/gnu/bin/gcc 
  43. #HOSTALLOCA = /net/acae127/home/bammi/lib.hp-ux/alloca.o
  44. #MALLOC1 = /net/acae127/home/bammi/lib.hp-ux/malloc_new6.o
  45. MALLOC1 = 
  46. # OLDCC should not be the GNU C compiler.
  47. OLDCC = cc
  48. BISON = bison
  49. BISONFLAGS=
  50. AR = ar
  51. SHELL = /bin/sh
  52.  
  53. bindir = 
  54. libdir = 
  55.  
  56. # These are what you would need on HPUX:
  57. # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  58. # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
  59. # bites whenever tree.def, rtl.def or machmode.def is included
  60. # (ie., on every source file).
  61. # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  62. # For CCLIBFLAGS you might want to specify the switch that
  63. # forces only 68000 instructions to be used.
  64.  
  65. # If you are making gcc for the first time, and if you are compiling it with
  66. # a non-gcc compiler, and if your system doesn't have a working alloca() in any
  67. # of the standard libraries (as is true for HP/UX or Genix),
  68. # then get alloca.c from GNU Emacs and un-comment the following line:
  69. # ALLOCA = alloca.o
  70.  
  71. # If your system has alloca() in /lib/libPW.a, un-comment the following line:
  72. # CLIB= -lPW
  73.   
  74. # If your system's malloc() routine fails for any reason (as it does on
  75. # certain versions of Genix), try getting the files
  76. # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
  77. # MALLOC = malloc.o
  78.  
  79. # If you are running GCC on an Apollo, you will need this:
  80. # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
  81.  
  82. # Change this to a null string if obstacks are installed in the
  83. # system library.
  84. OBSTACK=obstack.o
  85. OBSTACK1=obstack.oo
  86.  
  87. # Dependency on obstack, alloca, malloc or whatever library facilities
  88. # are not installed in the system libraries.
  89. LIBDEPS= $(OBSTACK)
  90. LIBDEPS1= $(OBSTACK1) $(HOSTALLOCA) $(MALLOC)
  91.  
  92. # How to link with both our special library facilities
  93. # and the system's installed libraries.
  94. LIBS = $(OBSTACK)
  95. LIBS1 = $(OBSTACK1) $(HOSTALLOCA) $(MALLOC) $(MALLOC1) $(CLIB)
  96.  
  97. DIR = ../gcc
  98.  
  99. # Object files of CC1.
  100. # Language-specific object files for C.
  101. C_OBJS = c-parse.o c-lang.o c-lex.o \
  102.  c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-pragma.o
  103.  
  104. # Language-specific object files for Objectionable C.
  105. OBJC_OBJS = objc-parse.o objc-actions.o \
  106.    c-lex.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o
  107.  
  108. # Language-specific object files for C++.
  109. CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
  110.    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
  111.    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
  112.    cp-class.o cp-init.o cp-method.o cp-except.o \
  113.    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
  114.    $(CPLUS_INPUT) cp-spew.o c-common.o
  115.  
  116. # Language-independent object files.
  117. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  118.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  119.  rtl.o print-rtl.o rtlanal.o dbxout.o sdbout.o dwarfout.o emit-rtl.o \
  120.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  121.  regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
  122.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  123.  insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  124.  insn-attrtab.o aux-output.o getpwd.o
  125.  
  126. GCC_PASSES=gcc cc1 cpp
  127.  
  128. # Files to be copied away after each stage in building.
  129. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  130.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  131.  insn-attr.h insn-attrtab.c \
  132.  stamp-flags stamp-config stamp-codes \
  133.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  134.  stamp-attr stamp-attrtab \
  135.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  136.  genattrtab genattr \
  137.  $(GCC_PASSES) $(EXTRA_PARTS) gcc-cross cccp cc1plus cc1obj enquire \
  138.  protoize unprotoize specs collect2
  139.  
  140. # Header files that are made available to programs compiled with gcc.
  141. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  142.  
  143. # If you want to recompile everything, just do rm *.o.
  144. # CONFIG_H = config.h tm.h
  145. CONFIG_H =
  146. RTL_H = rtl.h rtl.def machmode.h machmode.def
  147. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  148. CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
  149.  
  150. ALL =  gcc.ttp gcc-cc1.ttp gcc-cpp.ttp
  151.  
  152. all : $(ALL)
  153.  
  154. compilations: ${OBJS}
  155.  
  156. gcc.ttp: gcc.o version.o $(LIBDEPS)
  157.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc.ttp gcc.o version.o $(LIBS)
  158.  
  159. gcc.o: gcc.c $(CONFIG_H)
  160.     $(CC) $(CFLAGS) -DDEFAULT_TARGET_MACHINE=\"atariST\" -c gcc.c
  161.  
  162. gcc-cc1.ttp: $(C_OBJS) $(OBJS) $(LIBDEPS)
  163.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1.ttp $(C_OBJS) $(OBJS) $(LIBS)
  164.  
  165. gcc-cc1+.ttp: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
  166.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1+.ttp $(CPLUS_OBJS) $(OBJS) $(LIBS)
  167.  
  168. gcc-cc1o.ttp: $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
  169.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1o.ttp $(OBJC_OBJS) $(OBJS) $(LIBS)
  170.  
  171. # C-language specific files.
  172.  
  173. c-parse.o : c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h input.h flags.h
  174.     $(CC) $(CFLAGS) -c c-parse.c
  175. c-parse.c c-parse.h: c-parse.y
  176.     @echo expect 30 shift/reduce conflicts and 14 reduce/reduce conflicts
  177.     $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  178. c-parse.y: c-parse.in cond.awk
  179.     awk -f cond.awk objc=0 c-parse.in > c-parse.y
  180.  
  181. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  182. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  183. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  184. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
  185.     input.h flags.h
  186. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  187. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  188.  
  189. # C++ language specific files.
  190.  
  191. cp-parse.o : cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  192.     $(CC) -c $(CFLAGS) cp-parse.c
  193.  
  194. cp-parse.c cp-parse.h : cp-parse.y
  195.     @echo expect 30 shift/reduce conflicts and 14 reduce/reduce conflicts
  196.     $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
  197.     grep '^#define[     ]*YYEMPTY' cp-parse.c >>cp-parse.h
  198.  
  199. cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
  200.    cp-parse.h flags.h
  201. cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
  202.    cp-parse.h cp-input.c flags.h
  203. cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  204.   cp-lex.h cp-decl.h stack.h
  205. cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  206.   cp-lex.h cp-decl.h
  207. cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  208. cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  209. cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
  210.     cp-class.h flags.h
  211. cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
  212.     flags.h
  213. cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  214. cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
  215. cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
  216. cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  217. cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  218. cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
  219. cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  220. cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  221. cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
  222.   expr.h insn-codes.h
  223. cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  224. cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
  225. cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
  226.  
  227. # Objectionable C language specific files.
  228.  
  229. objc-parse.o : objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  230.    c-tree.h input.h flags.h objc-actions.h
  231.     $(CC) $(CFLAGS) -c objc-parse.c
  232. objc-parse.c : objc-parse.y
  233.     $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  234.  
  235. objc-actions.o : objc-actions.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h \
  236.    flags.h objc-actions.h
  237.  
  238. # A file used by all variants of C.
  239.  
  240. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  241.  
  242.  
  243. # Language-independent files.
  244. dumpvers: dumpvers.c
  245.  
  246. version.o: version.c
  247. obstack.o: obstack.c
  248.  
  249. tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
  250. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  251. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  252. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  253. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
  254.  insn-attr.h xcoffout.h
  255.  
  256. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  257.  
  258. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  259. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  260.  
  261. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
  262.    insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h
  263. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  264.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  265.    recog.h output.h
  266. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  267.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
  268. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h  \
  269.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
  270. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  271.    insn-flags.h
  272. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  273.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  274. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  275.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  276. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  277.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h
  278. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  279.    insn-config.h reload.h gstab.h xcoffout.h
  280. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  281.    insn-config.h reload.h
  282. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  283.    insn-config.h reload.h output.h
  284. xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
  285. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) flags.h gvarargs.h function.h  \
  286.    regs.h insn-config.h insn-codes.h real.h expr.h
  287.  
  288. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  289.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h
  290.  
  291. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  292.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  293. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  294.  
  295. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  296.    insn-config.h recog.h
  297. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  298.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  299. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  300.    integrate.h regs.h flags.h expr.h loop.h
  301. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  302.    basic-block.h regs.h hard-reg-set.h output.h
  303. combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
  304.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  305.    basic-block.h recog.h real.h
  306. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  307.    basic-block.h regs.h insn-config.h recog.h 
  308. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  309.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  310. global.o : global.c $(CONFIG_H) $(RTL_H) flags.h  \
  311.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  312.  
  313. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  314.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  315. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  316.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  317.    basic-block.h recog.h output.h
  318. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  319.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  320. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  321.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  322.    flags.h output.h
  323. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  324.    flags.h insn-config.h insn-attr.h
  325. final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
  326.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  327.    hard-reg-set.h insn-codes.h gstab.h xcoffout.h
  328. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  329.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  330.    insn-flags.h insn-codes.h real.h
  331. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  332.    regs.h hard-reg-set.h flags.h insn-config.h
  333.    
  334. aux-output.o : aux-output.c $(CONFIG_H) \
  335.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  336.    insn-flags.h output.h insn-attr.h insn-codes.h
  337.  
  338.  
  339. # Now the source files that are generated from the machine description.
  340.  
  341. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  342.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  343.   insn-attr.h insn-attrtab.c
  344.  
  345. insn-config.h : md genconfig
  346.     ./genconfig md > tmp-insn-config.h
  347.     ./move-if-change tmp-insn-config.h insn-config.h
  348.  
  349. insn-flags.h : md genflags
  350.     ./genflags md > tmp-insn-flags.h
  351.     ./move-if-change tmp-insn-flags.h insn-flags.h
  352.  
  353. insn-codes.h : md gencodes
  354.     ./gencodes md > tmp-insn-codes.h
  355.     ./move-if-change tmp-insn-codes.h insn-codes.h
  356.  
  357. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h
  358.     $(CC) $(CFLAGS) -c insn-emit.c
  359.  
  360. insn-emit.c : md genemit
  361.     ./genemit md > tmp-insn-emit.c
  362.     ./move-if-change tmp-insn-emit.c insn-emit.c
  363.  
  364. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
  365.     $(CC) $(CFLAGS) -c insn-recog.c
  366.  
  367. insn-recog.c : md genrecog
  368.     ./genrecog md > tmp-insn-recog.c
  369.     ./move-if-change tmp-insn-recog.c insn-recog.c
  370.  
  371. insn-extract.o : insn-extract.c $(RTL_H)
  372.     $(CC) $(CFLAGS) -c insn-extract.c
  373.  
  374. insn-extract.c : md genextract
  375.     ./genextract md > tmp-insn-extract.c
  376.     ./move-if-change tmp-insn-extract.c insn-extract.c
  377.  
  378. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h
  379.     $(CC) $(CFLAGS) -c insn-peep.c
  380.  
  381. insn-peep.c : md genpeep
  382.     ./genpeep md > tmp-insn-peep.c
  383.     ./move-if-change tmp-insn-peep.c insn-peep.c
  384.  
  385. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h output.h aux-output.c
  386.     $(CC) $(CFLAGS) -c insn-output.c
  387.  
  388. insn-output.c : md genoutput
  389.     ./genoutput md > tmp-insn-output.c
  390.     ./move-if-change tmp-insn-output.c insn-output.c
  391.  
  392. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  393.      insn-attr.h insn-config.h
  394.     $(CC) $(CFLAGS) -c insn-attrtab.c
  395.  
  396. insn-attr.h: md genattr
  397.     ./genattr md > tmp-attr.h
  398.     ./move-if-change tmp-attr.h insn-attr.h
  399.  
  400. insn-attrtab.c: md genattrtab
  401.     ./genattrtab md > tmp-attrtab.c
  402.     ./move-if-change tmp-attrtab.c insn-attrtab.c
  403.  
  404.  
  405. # Now the programs that generate those files.
  406.  
  407. genconfig : genconfig.oo rtl.oo $(LIBDEPS1)
  408.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genconfig genconfig.oo rtl.oo $(LIBS1)
  409.  
  410. genconfig.oo : genconfig.c $(RTL_H)
  411.     $(HOSTCC) $(HOSTCFLAGS) -c genconfig.c -o genconfig.oo
  412.  
  413. genflags : genflags.oo rtl.oo $(LIBDEPS1)
  414.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genflags genflags.oo rtl.oo $(LIBS1)
  415.  
  416. genflags.oo : genflags.c $(RTL_H)
  417.     $(HOSTCC) $(HOSTCFLAGS) -c genflags.c -o genflags.oo
  418.  
  419. gencodes : gencodes.oo rtl.oo $(LIBDEPS1)
  420.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o gencodes gencodes.oo rtl.oo $(LIBS1)
  421.  
  422. gencodes.oo : gencodes.c $(RTL_H)
  423.     $(HOSTCC) $(HOSTCFLAGS) -c gencodes.c -o gencodes.oo
  424.  
  425. genemit : genemit.oo rtl.oo $(LIBDEPS1)
  426.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genemit genemit.oo rtl.oo $(LIBS1)
  427.  
  428. genemit.oo : genemit.c $(RTL_H)
  429.     $(HOSTCC) $(HOSTCFLAGS) -c genemit.c -o genemit.oo
  430.  
  431. genrecog : genrecog.oo rtl.oo $(LIBDEPS1)
  432.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genrecog genrecog.oo rtl.oo $(LIBS1)
  433.  
  434. genrecog.oo : genrecog.c $(RTL_H)
  435.     $(HOSTCC) $(HOSTCFLAGS) -c genrecog.c -o genrecog.oo
  436.  
  437. genextract : genextract.oo rtl.oo $(LIBDEPS1)
  438.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genextract genextract.oo rtl.oo $(LIBS1)
  439.  
  440. genextract.oo : genextract.c $(RTL_H)
  441.     $(HOSTCC) $(HOSTCFLAGS) -c genextract.c -o genextract.oo
  442.  
  443. genpeep : genpeep.oo rtl.oo $(LIBDEPS1)
  444.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genpeep genpeep.oo rtl.oo $(LIBS1)
  445.  
  446. genpeep.oo : genpeep.c $(RTL_H)
  447.     $(HOSTCC) $(HOSTCFLAGS) -c genpeep.c -o genpeep.oo
  448.  
  449. genoutput : genoutput.oo rtl.oo $(LIBDEPS1)
  450.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genoutput genoutput.oo rtl.oo $(LIBS1)
  451.  
  452. genoutput.oo : genoutput.c $(RTL_H)
  453.     $(HOSTCC) $(HOSTCFLAGS) -c genoutput.c -o genoutput.oo
  454.  
  455. genattr : genattr.oo rtl.oo $(LIBDEPS1)
  456.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genattr \
  457.      genattr.oo rtl.oo $(LIBS1)
  458.  
  459. genattr.oo : genattr.c $(RTL_H) config.h
  460.     $(HOSTCC) -c $(HOSTCFLAGS) genattr.c -o genattr.oo
  461.  
  462. genattrtab : genattrtab.oo rtl.oo rtlanal.oo $(LIBDEPS1)
  463.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genattrtab \
  464.      genattrtab.oo rtl.oo rtlanal.oo $(LIBS1)
  465.  
  466. genattrtab.oo : genattrtab.c $(RTL_H) config.h insn-config.h
  467.     $(HOSTCC) -c $(HOSTCFLAGS) genattrtab.c -o genattrtab.oo
  468.  
  469. rtl.oo : rtl.c $(CONFIG_H) $(RTL_H)
  470.     $(HOSTCC) $(HOSTCFLAGS) -c rtl.c -o rtl.oo
  471.  
  472. rtlanal.oo : rtlanal.c $(CONFIG_H) $(RTL_H)
  473.     $(HOSTCC) $(HOSTCFLAGS) -c rtlanal.c -o rtlanal.oo
  474.  
  475. obstack.oo : obstack.c
  476.     $(HOSTCC) $(HOSTCFLAGS) -c obstack.c -o obstack.oo
  477.  
  478. # Making the preprocessor
  479. gcc-cpp.ttp: cccp
  480.     -rm -f gcc-cpp.ttp
  481.     ln cccp gcc-cpp.ttp
  482.  
  483. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  484.     $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  485. cexp.o: cexp.c
  486. cexp.c: cexp.y
  487.     $(BISON) cexp.y
  488.     mv cexp.tab.c cexp.c
  489. cccp.o: cccp.c
  490.  
  491. # gnulib is not deleted because deleting it would be inconvenient
  492. # for most uses of this target.
  493. clean:
  494.     -rm -f *.o *.oo $(STAGESTUFF)
  495.     -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  496.  
  497. # Get rid of every file that's generated from some other file (except INSTALL).
  498. realclean: clean
  499.     -rm -f $(ALL)
  500.     -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
  501.     -rm -f errs gnulib TAGS 
  502.     -rm -f core report
  503.     -rm -f internals internals-* internals.?? internals.??s
  504.  
  505. # Copy the files into directories where they will be run.
  506. #install: all
  507. #    install cc1 $(libdir)/gcc-cc1
  508. #    install cpp $(libdir)/gcc-cpp
  509. #    install gcc $(bindir)
  510.  
  511. force:
  512.  
  513. #In GNU Make, ignore whether `stage*' exists.
  514. .PHONY: clean realclean
  515.